package org.zfes.snowier.cloud.zbss.widget.act.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.common.dao.params.ParamMap;
import org.zfes.snowier.cloud.zbss.widget.act.model.ActSubjectQuesAnswer;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface ActSubjectQuesAnswerMapper extends BaseMapper<ActSubjectQuesAnswer>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<ActSubjectQuesAnswer> selectModelListPage(ParamMap params);
	
	
	ActSubjectQuesAnswer selectQuetionAnswer(
			@Param("subjectId")Long subjectId,
			@Param("quesId")Long quesId,
			@Param("answerUserId")Long answerUserId);
	
	Record selectAnswerDistribution(@Param("subjectId")Long subjectId,@Param("quesId")Long quesId);
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);

	List<ActSubjectQuesAnswer> selectBySubjectQuesId(@Param("subjectQuesId")Long subjectQuesId);
	
	
}
